package com.example.natatorium_management.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.example.natatorium_management.entity.Good;
import com.example.natatorium_management.entity.MemberShip;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Repository
public interface GoodMapper extends BaseMapper<Good> {
    IPage<Good> queryPage(IPage<Good> page);

    int updateGood(Good good);

    IPage<Good> findGoodByGoodName(IPage page,@Param("goodName") String goodName);
    IPage<Good> findGoodById (IPage page, @Param("goodId")Long goodId);

}
